package ru.vba.gwt.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;

public class Main implements EntryPoint {

	public void onModuleLoad() {

		Button sendButton = new Button("Click me", new ClickHandler() {

			public void onClick(ClickEvent event) {
				Window.alert("dick");
			}
		});
		TextBox nameField = new TextBox();

		nameField.setText("GWT User");
		RootPanel.get().add(nameField);
		RootPanel.get().add(sendButton);
	}

}
